package com.zhaojindong.aop;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class aopTest {

    @Test
    public void testMethod() {
        ApplicationContext context = new AnnotationConfigApplicationContext(MainConfig.class);
        MathCalculation bean = context.getBean(MathCalculation.class);
        bean.division(1, 1);
    }
}
